package com.eas.ereceipt.bean;

import java.util.ArrayList;

public class GroupSlidingMenu {
	
	private int id;
	private String title;
	private ArrayList<ItemSlidingMenu> items;
	
	public GroupSlidingMenu() {
		this.items = new ArrayList<ItemSlidingMenu>();
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public ArrayList<ItemSlidingMenu> getItems() {
		return items;
	}
	public void setItems(ArrayList<ItemSlidingMenu> items) {
		this.items = items;
	}
	
	public void addItem(ItemSlidingMenu i){
		this.items.add(i);
	}
	
	public void addItem(ItemSlidingMenu i, int pos){
		this.items.add(pos, i);
	}
	
	public void removeItem(ItemSlidingMenu i){
		this.items.remove(i);
	}
	
	public void removeItem(int pos){
		this.items.remove(pos);
	}
	
}
